package cn.iocoder.yudao.module.scrm.controller.admin.refund.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.scrm.controller.admin.commom.vo.FileInfoVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.*;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.module.scrm.enums.DictTypeConstants.SCRM_AUDIT_STATUS;

@Schema(description = "管理后台 - 退款 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RefundRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17156")
    //@ExcelProperty("主键")
    private Long id;

    @Schema(description = "退款编号")
    @ExcelProperty("订单编号")
    private String no;

    @Schema(description = "订单号", example = "16699")
    //@ExcelProperty("订单号")
    private Integer orderId;

    @Schema(description = "订单标题", example = "2138")
    @ExcelProperty("订单标题")
    private String orderTitle;

    @Schema(description = "客户编号", example = "14758")
    //@ExcelProperty("客户编号")
    private Long customerId;

    @Schema(description = "客户名称", example = "杨")
    @ExcelProperty("客户名称")
    private String customerName;

    @Schema(description = "合同编号", example = "3835")
    //@ExcelProperty("合同编号")
    private Long contractId;

    @Schema(description = "负责人编号", example = "5279")
    //@ExcelProperty("负责人编号")
    private Long ownerUserId;

    @Schema(description = "负责人名称", example = "杨")
    @ExcelProperty("负责人名称")
    private String ownerUserName;

    @Schema(description = "负责人部门")
    @ExcelProperty("负责人部门")
    private String ownerUserDeptName;

    @Schema(description = "退款日期")
    @ExcelProperty("退款日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate returnTime;

    @Schema(description = "户名", example = "赵六")
    @ExcelProperty("户名")
    private String accountName;

    @Schema(description = "卡号")
    @ExcelProperty("卡号")
    private String cardNumber;

    @Schema(description = "开户行", example = "赵六")
    @ExcelProperty("开户行")
    private String bankName;

    @Schema(description = "退款金额", example = "30058")
    @ExcelProperty("退款金额")
    private BigDecimal price;

    @Schema(description = "附件信息")
    //@ExcelProperty("附件信息")
    private List<FileInfoVO> attachment;

    @Schema(description = "图片-附件信息")
    private List<FileInfoVO> pictureAttachment;

    @Schema(description = "工作流编号", example = "16880")
    //@ExcelProperty("工作流编号")
    private Long processInstanceId;

    @Schema(description = "审批状态", example = "2")
    @ExcelProperty(value = "审批状态" , converter = DictConvert.class)
    @DictFormat(SCRM_AUDIT_STATUS)
    private Integer auditStatus;

    @Schema(description = "备注信息", example = "随便")
    @ExcelProperty("备注信息")
    private String remark;

    @Schema(description = "是否发放提成:0未发放，1已发", example = "1")
    private Integer commission;

    @Schema(description = "是否已开票：0未开，1已开", example = "1")
    private Integer invoice;

    @Schema(description = "是否发放提成:0未发放，1已发", example = "1")
    @ExcelProperty("是否已发放提成")
    private String commissionShowName;

    @Schema(description = "是否已开票：0未开，1已开", example = "1")
    @ExcelProperty("是否已开发票")
    private String invoiceShowName;

    @Schema(description = "创建人姓名id")
    private String creator;

    @Schema(description = "创建人姓名")
    @ExcelProperty("创建人姓名")
    private String creatorName;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @ExcelProperty("更新时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime updateTime;


    @Schema(description = "创建人部门名称")
    private String creatorDeptName;



}